package com.itheima.myextends.homework.homework4;

/**
 * @Author 王加鑫
 * @Date 2021/5/6 20:17
 * @Version 1.0
 */
public class Demo4 {
    public static void main(String[] args) {
        PhoneVersion6 pv6 = new PhoneVersion6();
        pv6.speak();

    }
}


class PhoneVersion5{
    public void speak(){
        System.out.println("speak english");
    }

}

class PhoneVersion6 extends PhoneVersion5{
    @Override
    public void speak() {
        super.speak();
        System.out.println("说中文");
    }
}
